<!--{*
/*
 * This file is part of EC-CUBE
 *
 * Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
 *
 * http://www.lockon.co.jp/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
*}-->

<div id="alpha">
<div id="alpha-inner">
<!--▼SUB NAVI-->
<!--{include file=$tpl_subnavi}-->
<!--▲SUB NAVI-->
</div>
</div>



<div id="beta">
<div id="beta-inner">
<form name="form1" id="form1" method="post" action="">
	<!--{foreach key=key item=item from=$arrSearchHidden}-->
	<input type="hidden" name="<!--{$key}-->" value="<!--{$item|escape}-->">
	<!--{/foreach}-->
<input type="hidden" name="mode" value="edit">
<input type="hidden" name="product_id" value="<!--{$tpl_product_id}-->">
<input type="hidden" name="pageno" value="<!--{$tpl_pageno}-->">

<div class="title_page">
<h2><!--{$tpl_subtitle}-->｜規格登録</h2>
</div>



<div class="menuclass">
<dl>
<dt>商品名</dt>
<dd><!--{$arrForm.product_name|escape}--></dd>
<dt>規格1<span class="red">*</span></dt>
<dd><span class="red12"><!--{$arrErr.select_class_id1}--></span>
	<select name="select_class_id1">
	<option value="">選択してください</option><!--{html_options options=$arrClass selected=$arrForm.select_class_id1}-->
	</select>
</dd>
<dt>規格2</dt>
<dd><span class="red12"><!--{$arrErr.select_class_id2}--></span>
	<select name="select_class_id2">
	<option value="">選択してください</option><!--{html_options options=$arrClass selected=$arrForm.select_class_id2}-->
	</select>
</dd>
</dl>
</div>



	<div class="btn_box">
	<input type="button" value="検索結果へ戻る" onclick="fnChangeAction('<!--{$smarty.const.URL_SEARCH_TOP}-->'); fnModeSubmit('search','',''); return false;" >
	<input type="button" name="btn" value="表示する" onclick="fnModeSubmit('disp','','')">
	<!--{if count($arrClassCat) > 0}-->
	<input type="button" name="btn" value="削除する" onclick="fnModeSubmit('delete','','');">
	<!--{/if}-->
	</div>



<!--{if count($arrClassCat) > 0}-->
	<!--{foreach item=item name=i from=$arrClassCat}-->
	<!--{if $smarty.foreach.i.first}-->
	<!--{assign var=cnt value=$smarty.foreach.i.total}-->
	<!--{/if}-->
	<!--{/foreach}-->

<div class="searchit">
<ul>
<li><a href="<!--{$smarty.const.URL_DIR}-->" onclick="fnAllCheck(); return false;">全選択</a></li>
<li><a href="<!--{$smarty.const.URL_DIR}-->" onclick="fnAllUnCheck(); return false;">全解除</a></li>
<li><a href="<!--{$smarty.const.URL_DIR}-->" onclick="fnCopyValue('<!--{$cnt}-->', '<!--{$smarty.const.DISABLED_RGB}-->'); return false;">一行目のデータをコピーする</a></li>
</ul>
</div>



<div class="menuclass">
<table summary="規格登録">
<!--{assign var=class_id1 value=$arrForm.class_id1}-->
<!--{assign var=class_id2 value=$arrForm.class_id2}-->
<input type="hidden" name="class_id1" value="<!--{$class_id1}-->">
<input type="hidden" name="class_id2" value="<!--{$class_id2}-->">
<tr>
	<th>登録</th>
	<th>規格1(<!--{$arrClass[$class_id1]|default:"未選択"}-->)</th>
	<th>規格2(<!--{$arrClass[$class_id2]|default:"未選択"}-->)</th>
	<th>商品コード</th>
	<th>在庫(個)<span class="red">*</span></th>
	<th><!--{$smarty.const.NORMAL_PRICE_TITLE}-->(円)</th>
	<th><!--{$smarty.const.SALE_PRICE_TITLE}-->(円)<span class="red">*</span></th>
</tr>
<!--{section name=cnt loop=$arrClassCat}-->
<!--{assign var=key value="error:`$smarty.section.cnt.iteration`"}-->
	<!--{if $arrErr[$key] != ""}-->
	<tr>
		<td colspan="8"><span class="red12"><!--{$arrErr[$key]}--></span></td>
	</tr>
	<!--{/if}-->
<tr>
<input type="hidden" name="classcategory_id1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id1}-->">
<input type="hidden" name="classcategory_id2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].classcategory_id2}-->">
<input type="hidden" name="name1:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name1}-->">
<input type="hidden" name="name2:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].name2}-->">
<input type="hidden" name="product_class_id:<!--{$smarty.section.cnt.iteration}-->" value="<!--{$arrClassCat[cnt].product_class_id}-->">
<!--{assign var=key value="check:`$smarty.section.cnt.iteration`"}-->
	<td align="center">
	<input type="checkbox" name="check:<!--{$smarty.section.cnt.iteration}-->" value="1" <!--{if $arrForm[$key] == 1}-->checked="checked"<!--{/if}-->></td>
	<td><!--{$arrClassCat[cnt].name1}--></td>
	<td><!--{$arrClassCat[cnt].name2}--></td>
	<!--{assign var=key value="product_code:`$smarty.section.cnt.iteration`"}-->
	<td align="center">
	<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.STEXT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td>
	<!--{assign var=key value="stock:`$smarty.section.cnt.iteration`"}-->
	<!--{assign var=chkkey value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
	<td align="center">
	<input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.AMOUNT_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->>
	<!--{assign var=key value="stock_unlimited:`$smarty.section.cnt.iteration`"}-->
	<input type="checkbox" name="<!--{$key}-->" value="1" <!--{if $arrForm[$key] == "1"}-->checked<!--{/if}--> onClick="fnCheckStockNoLimit('<!--{$smarty.section.cnt.iteration}-->','<!--{$smarty.const.DISABLED_RGB}-->');"/>無制限
	</td>
	<!--{assign var=key value="price01:`$smarty.section.cnt.iteration`"}-->
	<td align="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td>
	<!--{assign var=key value="price02:`$smarty.section.cnt.iteration`"}-->
	<td align="center"><input type="text" name="<!--{$key}-->" value="<!--{$arrForm[$key]}-->" size="6" class="box6" maxlength="<!--{$smarty.const.PRICE_LEN}-->" <!--{if $arrErr[$key] != ""}--><!--{sfSetErrorStyle}--><!--{/if}-->></td>
</tr>
<!--{/section}-->
</table>
</div>



	<div class="btn_box">
	<input type="submit" value="この内容で登録する" name="subm" />
	</div>
<!--{/if}-->

</form>
</div>
</div>
